package bean;

import java.util.List;
import java.util.logging.Logger;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import model.CategoryM;
import object.Category;
import object.ReturnBool;
import tpInterface.ICategory;

/**
 *
 * @author SonTT
 */
@ManagedBean
@RequestScoped
public class CategoryBean implements ICategory{
    
    private static final Logger LOG = Logger.getLogger(CategoryBean.class.getName());
    private CategoryM categoryM;

    /**
     * Creates a new instance of CategoryBean
     */
    public CategoryBean() {
        categoryM = new CategoryM();
    }

    @Override
    public List<Category> getCategoies() {
        return categoryM.getCategoies();
    }

    @Override
    public ReturnBool addCategory(Category category) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ReturnBool editCategory(Category category) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ReturnBool deleteCategory(String categoryID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ReturnBool deleteCategories(String[] categoryIDs) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Category> searchCategory(String keyword) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
